if (%upd.set == yes) { unset %upd.set | echo -a $+ $clr(info) $+ *** Settings Updated, you may now log on to IRC | if ($findfile($mircdiraddons\,*.adn,1) != $null && $findfile($mircdiraddons\,*.adn,1) != $mircdiraddons\sample\sample.adn) { echo -a $+ $clr(info) $+ *** C-Script addons were found Type /addons for more info } }
set %crchn N
if (%ircopp == yes) { set %ircopp no | .unload -rs $mircdirsysfiles\menus\ircopp.mrc }
if ($lof($mircdirsysfiles\seen\seen.ini) >= 64000) { seenclean }
if ($lof($mircdirsysfiles\page\page.ini) >= 64000) { pageclean }
c-tip | .timer338 -o 0 6 c-tip
awayoff
if ($version == $null || $version < 5.3) { echo -a $+ $clr(info) $+ *** You are not running a version of mIRC that is completely compatible with C-Script visit %cswebpage for the latest version | halt }
}
on 1:DISCONNECT: {
set %startupm 1
.identd on
if (%chanrejoin == on && %ccchns > 0) { set %crchn Y } | wallopsbox -c
on 1:TEXT:+AWAYHELP:* { msg $nick Please type +PAGE and write a MESSAGE to reach me. Example: +PAGE Just wanted to talk. | msg $nick Or: /msg $me +PAGE Just wanted to talk. | msg $nick Or you can beep me by typing +BEEP. I might not be close enough to my computer to hear you though, so if I don't come after about 5 minutes please assume that I am completely gone :) | .timer 1 10 closemsg $nick }
on 1:TEXT:+PAGEHELP:* { msg $nick Please type +PAGE and write a MESSAGE to reach me. Example: +PAGE Just wanted to talk. | msg $nick Or: /msg $me +PAGE Just wanted to talk. | .timer 1 10 closemsg $nick }
on 1:TEXT:+PAGE:*:notice $nick You must put a message after the +PAGE. Example: +PAGE Just wanted to talk.
on 1:TEXT:+PAGE*:* {
if (%pgfnum > 5) { ignore -pcu30 *!*@* | notice $nick 30 Second Ignore. Please Wait about 30 seconds before /msg'ing me again... [C-Script Protection] | set %pgfnum 0 | halt }
if ($nick !isin %msgnicks) { inc %msgnum | set %msgnicks %msgnicks $+ $nick $+ $chr(160) }
set %temp $2-
set %temp $replace(%temp,$chr(124),%awaybv)
writeini sysfiles\page\page.ini page $nick echo -a $+ $clr(info) $+ *** $nick at ( $+ $address $+ ) left this msg: $+ %temp $+ on $day $adate at $atime
notice $nick Thank you for leaving $me a message. | notice $nick Please Note: If you leave $me another message, your current message will be overwritten | .timer 1 5 closemsg $nick | wavplay $mircdirSounds\Ding.wav | inc %pgfnum | .timer 1 30 set %pgfnum 0
}
#groupAWAY end
#beep off
on 1:TEXT:+BEEPHELP:* { if ($away == $true) { msg $nick You can beep me by typing +BEEP I might not be close enough to my computer to hear you though, so if I don't come after about 5 minutes please assume that I am completely gone :) } }
on 1:TEXT:+BEEP:* { if ($away == $true) { notice $nick Thank you for BEEPing $me. Please wait... | echo -a $+ $clr(info) $+ *** $nick BEEPed you at $atime $+ . To turn the sound off type /timer525 off | .timer525 -o 50 5 wavplay beeper.wav | .ignore -au15 $nick 3 } }
#beep end
#aamsgs off
on 1:TEXT:*:?: {
if (%msglog == On) {
echo %msglogw $+ $clr(info) $+ *** $chr(91) $+ At $atime $day $adate $+ $chr(93) < $+ $nick $+ $chr(124) $+ $address $+ > $1- | inc %mlmsgnum | notice $nick I'm away right now, but your message was logged.
}
if (($away == $true) && (%PGER == On) && (%BEEP != On)) { notice $nick I'm away right now... For information on paging me please type /msg $me +PAGEHELP. Thanks. } | if (($away == $true) && (%PGER != On) && (%BEEP == On)) { notice $nick I'm away right now... For information on beeping me please type /msg $me +BEEPHELP. Thanks. } | elseif (($away == $true) && (%PGER == On) && (%BEEP == On)) { notice $nick I'm away right now... For information on paging or beeping me please type /msg $me +AWAYHELP. Thanks. }
.timer 1 25 closemsg $nick
}
on 1:TEXT:%awme:#: { if (($away == $true) && (%PGER == On) && (%BEEP != On)) { notice $nick I'm away right now... For information on paging me please type /msg $me +PAGEHELP. Thanks. } | if (($away == $true) && (%PGER != On) && (%BEEP == On)) { notice $nick I'm away right now... For information on beeping me please type /msg $me +BEEPHELP. Thanks. } | elseif (($away == $true) && (%PGER == On) && (%BEEP == On)) { notice $nick I'm away right now... For information on paging me please type /msg $me +AWAYHELP. Thanks. } }
#aamsgs end
#msglog off
on 1:TEXT:*:? {
if (%msglog == On) {
echo %msglogw $+ $clr(info) $+ *** $chr(91) $+ At $atime $day $adate $+ $chr(93) < $+ $nick $+ $chr(124) $+ $address $+ > $1- | inc %mlmsgnum | notice $nick I'm away right now, but your message was logged.
}
.timer 1 25 closemsg $nick
}
on +7:TEXT:*:? {
if (%msglog == On) {
echo %msglogw $+ $clr(info) $+ *** $chr(91) $+ At $atime $day $adate $+ $chr(93) < $+ $nick $+ $chr(124) $+ $address $+ > $1- | inc %mlmsgnum | notice $nick I'm away right now, but your message was logged.
}
.timer 1 25 closemsg $nick
}
on 1:TEXT:%awme:#:notice $nick I'm away right now. If you want to leave a message, /msg me. Example: /msg $me Just wanted to talk. | .ignore -cu15 $nick 3
#msglog end
#nc on
on 1:INPUT:#: {
if ($left($1,1) != / && $right($1,1) == %nckeywrd) {
unset %ncn*
set %ncmsg $2-
if ($group(#autospell) == on) { set %ncmsg $ispell(%ncmsg) }
;Feel free to edit the AutoGreet line. You might even want to make a reference to your FServe or XDCC!
if ($group(#autogreet) == on) { if (%agreetmsg == $null) { notice $nick Hello there $nick $+ ! Welcome to $chan $+ . } | else { notice $nick %agreetmsg } }
if ($group(#awhois) == on) { whois $nick }
if ($group(#chanclone) == on) { if ($gettok($clone($address($nick,2),$chan),2,32) != $null) && ($me isop $chan) { set %deccln $chan $clone($address($nick,2),$chan) | echo -a $+ $clr(info) $+ *** Clones found from $clone($address($nick,2),$chan) $+ on $chan $+ , press F11 to kick/ban them, F10 to kick them, or F9 to warn them } }
}
#sounds on
on 1:NOSOUND: { if ($away == $false) { if ($nick ison $active) { msg $active ! $+ $nick $filename } | else { msg $nick ! $+ $nick $filename } } }
#sounds end
#snotice on
on 1:SNOTICE:*Global -- from*:echo -a $+ $clr(notice) $+ !GlobOps! $+ $remove($5,:) $+ $+ : $6- | halt
on 1:SNOTICE:*LocOps -- from*:echo -a $+ $clr(notice) $+ !LocOps! $+ $remove($5,:) $+ $+ : $6- | halt
on 1:SNOTICE:*HelpOp -- from*:echo -a $+ $clr(notice) $+ !HelpOps! $+ $5 $+ $+ : $7- | halt
on 1:SNOTICE:*ChatOps -- from*:echo -a $+ $clr(notice) $+ !ChatOps! $+ $remove($5,:) $+ $+ : $6- | halt
on 1:SNOTICE:*ERROR*: {
if (%snoticebox == On) {
if ($1 == ERROR) { echo %cssnot $+ $clr(notice) $+ Server Notice: $1- }
else {
echo %cssnot $+ $clr(notice) $+ Server ERROR Notice: $4-
if (%snoticebox == On) { echo %cssnot $+ $clr(notice) $+ $4- | halt }
}
on 1:SNOTICE:*Highest connection count*:echo -s $+ $clr(notice) $+ $1- | halt
on 1:SNOTICE:*Lost user field*:halt
on 1:SNOTICE:*connect failure*: {
if (%snoticebox == On) { echo %cssnot $+ $clr(notice) $+ Connect failure for: $6 Reason: $7- | halt }
}
on 1:SNOTICE:*link with*:halt
on 1:SNOTICE:*Too many connections from*:halt
on 1:SNOTICE:*Unauthorized connection from*:halt
on 1:SNOTICE:*All connections in use*:halt
on 1:SNOTICE:*Can't allocate fd for auth on*:halt
on 1:SNOTICE:*Notice --*: {
if (HACK isin $4 || BOUNCE isin $4) { halt }
if (%snoticebox == On) {
if ($window(@IncomingáSNotices:) == $null) { insnotwin }
echo %cssnot $+ $clr(notice) $+ Server Notice: $4- | halt
}
}
on 1:SNOTICE:*: {
if (%snoticebox == On) {
if ($window(@IncomingáSNotices:) == $null) { insnotwin }
echo %cssnot $+ $clr(notice) $+ Server Notice: $1- | halt
}
}
#snotice end
on 1:SNOTICE:*:if (%startupm == 1) { halt }
#notify on
on 1:NOTIFY:if ($nick == $gettok(%cteamv,1,32) || $nick == $gettok(%cteamv,2,32) || $nick == $gettok(%cteamv,3,32)) { echo -a $+ $clr(notice) $+ A possible C-Team member just joined IRC ( $+ $nick $+ ) | whois $nick } | elseif ($active != status $+ $chr(32) $+ window) { echo -a $+ $clr(notice) $+ $nick just joined IRC } | splay ding.wav | halt
on 1:UNOTIFY:if ($active != status $+ $chr(32) $+ window) { echo -a $+ $clr(notice) $+ $nick just left IRC } | halt
#notify end
#usermode on
on 1:USERMODE:if ($active != status $+ $chr(32) $+ window) { echo -a $+ $clr(mode) $+ *** Your current usermode is now: $usermode } | if (o isin $usermode) { set %ircopp yes | .load -rs sysfiles\menus\ircopp.mrc } | else { if (%ircopp == yes) { set %ircopp no | .unload -rs $mircdirsysfiles\menus\ircopp.mrc } } | halt
#usermode end
on 1:USERMODE: { if (o isin $usermode) { set %ircopp yes | .load -rs sysfiles\menus\ircopp.mrc } | else { if (%ircopp == yes) { set %ircopp no | .unload -rs $mircdirsysfiles\menus\ircopp.mrc } } | halt }
#vote off
on 1:TEXT:YES:? { if (á $+ $nick $+ á isin %voters) { notice $nick I'm sorry $nick, You have already voted | halt } | else { %voters = %voters $+ á $+ $nick $+ á | inc %vyes | notice $nick Thank you for voting Yes... Stay tuned for the results } }
on 1:TEXT:NO:? { if (á $+ $nick $+ á isin %voters) { notice $nick I'm sorry $nick, You have already voted | halt } | else { %voters = %voters $+ á $+ $nick $+ á | inc %vno | notice $nick Thank you for voting No... Stay tuned for the results } }
#vote end
#autotalk off
on 1:TEXT:hello:#:msg $chan Hello $nick! How are you?
on 1:TEXT:Hello Everyone:#:msg $chan Hello $nick! How are you?
on 1:TEXT:Bye Everyone:#:msg $chan Bye $nick! Take care!
on 1:TEXT:Hi all:#:msg $chan Hello $nick! How are you?
#autotalk end
#noisek on
on @+98:TEXT:*:#:kick $chan $nick [NOISE KICK/BAN] at $day $atime ( $+ $1- $+ ) | echo -a $+ $clr(info) $+ *** [NOISE KICK/BAN] You kicked $nick off $chan for talking there. | notice $nick [NOISE KICK/BAN] now activated for $nick $+ ... | notice $chan [NOISE KICK/BAN] now activated for $nick $+ ... | .ruser =98 $nick 3 | .guser =99 $nick 3
on @+99:TEXT:*:#:ban $chan $nick 3 | kick $chan $nick [NOISE KICK/BAN] at $day $atime for making noise AGAIN | echo -a $+ $clr(info) $+ *** [NOISE KICK/BAN] You kickbaned $nick of $chan again. | .ruser =99 $nick 3 | .auser =999 $nick | .guser =999 $nick 3 | notice $nick You are [ShootListed]
#noisek end
#groupshoot off
=999:* { if ($nick ison $chan && $me isop $chan) { ban $chan $nick 3 | kick $chan $nick [ShootListed] | ignore -a $nick 3 } | else { .ignore -a $nick 3 } }
#groupshoot end
on 1:INPUT:@Socket:{ if ($left($1,5) == /sock) { sock $2- } | elseif (%sock.connected) { if ($1 == <D>) { sockdiscon } | else { sockwrite -tn Socket $1- | set %sock.send $1- } } | else { if ($2 isnum) { sockcon $1- } | else { sockcon $1 23 } } | halt }